package com.example.pilipili.utils;

import org.springframework.util.DigestUtils;

public class MD5U {
    static final String salt = "javaee" ;
    public static String getMD5Password(String password) {
        for(int i = 0 ; i < 3 ; i++) {
            password =   DigestUtils.md5DigestAsHex((salt + password + salt).getBytes()).toUpperCase() ;
        }

        return password ;
    }
}
